/*******************************************************************************
* Project: QSAR(Cute Software Architecture)
*
* Copyright: Copyright(C) 2024 by YuetingBen, All Rights Reserved
*
* File name: CanTpCfg.c
*
* Brief: ;
*
* Author: Yueting.Ben
*
* Module: CanTp
*
*******************************************************************************/

/** HEADER FILES **/
#include "CanTpCfg.h"


/** MACRO DEFINITION **/


/** TYPEDEF DEFINITION **/


/** LOCAL DATA DECLARATION **/
const CanTp_TxConfigType CanTp_TxConfig[CanTpConf_CanTpChannel_Tx_Max];
const CanTp_RxConfigType CanTp_RxConfig[CanTpConf_CanTpChannel_Rx_Max];
const CanTpGeneralType CanTpGeneral;


/** LOCAL DATA **/
const CanTp_TxConfigType CanTp_TxConfig[CanTpConf_CanTpChannel_Tx_Max] = 
{
    {CanIfConf_CanIfTxPduCfg_Pdu_Channel1_Qsar_DiagPhysResponse}
};


const CanTpGeneralType CanTpGeneral = 
{
    0xAA /* PaddingByte */
};

const CanTpRxNSduType CanTpRxNSduConfig[CanTpConf_CanTpChannel_Rx_Max] = 
{
    /* Channel 1, CanTpConf_CanTpChannel_Rx_Functional */
    {
        NULL_PTR,/* CanTpRxNSduRef */
        {(PduType*)&Pdu[ComStackConf_PduId_Rx_Channel1_Tester_DiagFuncRequest], 0u},/* CanTpRxNPdu */
        NULL_PTR, /* CanTpTxFcNPdu */
        0u, /* CanTpRxNSduId */
        0u, /* CanTpRxWftMax */
        8u, /* CanTpBs */
        70u, /* CanTpNar uint:ms */
        70u, /* CanTpNbr uint:ms */
        150u, /* CanTpNcr uint:ms */
        0x14, /* CanTpSTmin */
        CANTP_FUNCTIONAL, /* CanTpRxTaType */
        CANTP_STANDARD, /* CanTpRxAddressingFormat */
    },
    /* Channel 0, CanTpConf_CanTpChannel_Rx_Physical */
    {
        NULL_PTR,/* CanTpRxNSduRef */
        {(PduType*)&Pdu[ComStackConf_PduId_Rx_Channel1_Tester_DiagPhysRequest], 0u},/* CanTpRxNPdu */
        {(PduType*)&Pdu[ComStackConf_PduId_Tx_Channel1_Qsar_DiagPhysResponse], 0u},/* CanTpTxFcNPdu */
        0u, /* CanTpRxNSduId */
        0u, /* CanTpRxWftMax */
        8u, /* CanTpBs */
        70u, /* CanTpNar uint:ms */
        70u, /* CanTpNbr uint:ms */
        150u, /* CanTpNcr uint:ms */
        0x14, /* CanTpSTmin */
        CANTP_PHYSICAL, /* CanTpRxTaType */
        CANTP_STANDARD, /* CanTpRxAddressingFormat */
    }
};


const CanTpTxNSduType CanTpTxNSduConfig[CanTpConf_CanTpChannel_Tx_Max] = 
{
    /* Channel 0 */
    {
        NULL_PTR,/* CanTpTxNSduRef */
        {(PduType*)&Pdu[ComStackConf_PduId_Tx_Channel1_Qsar_DiagPhysResponse], 0u},/* CanTpTxNPdu */
        {(PduType*)&Pdu[ComStackConf_PduId_Rx_Channel1_Tester_DiagPhysRequest], 0u},/* CanTpRxFcNPdu */
        0u, /* CanTpTxNSduId */
        0u, /* CanTpRxWftMax */
        70u, /* CanTpNas unit:ms */
        150u, /* CanTpNbs unit:ms */
        70u, /* CanTpNcs unit:ms */
        0u, /* CanTpNAe */
        0u, /* CanTpNSa */
        0u, /* CanTpNTa */
        CANTP_PHYSICAL, /* CanTpTxTaType */
        CANTP_STANDARD, /* CanTpRxAddressingFormat */
    }
};

const CanTp_ConfigType CanTp_Config = 
{
    0x00
};

